﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Woodlands
{
    public class CourseClass
    {
        private int courseID;
        private string courseName;
        private List<Module> modules;

        public CourseClass()
        {
            courseID = 0;
            courseName = "";
            modules = new List<Module>();
        }

        public CourseClass(int idIN, string nameIn, List<Module> listIN)
        {
            courseID = idIN;
            courseName = nameIn;
            modules = listIN;
        }

        public int ID
        {
            get { return courseID; }
            set { courseID = value; }
        }

        public string Name
        {
            get { return courseName; }
            set { courseName = value; }
        }

        public List<Module> Modules
        {
            get { return modules; }
        }

        public void addModule(Module moduleIn)
        {
            modules.Add(moduleIn);
        }
    }
}
